#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
typedef long long LL;
int main()
{
	for (int i = 1; i <= 100; i++) {
		for (int j = 1; j <= 100; j++) {
			for (int k = 1; k <= 100; k++) {
				if (i + 2 * j + 5 * k == 100) {
					cout << i << " " << j << " " << k << endl;
				}
			}
		}
	}
	return 0;
}